//
//  NumberSearchViewController.m
//  WE
//
//  Created by apple on 15/12/2.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "NumberSearchViewController.h"
#import "Size.h"
#import <Masonry.h>
@interface NumberSearchViewController ()<UITextFieldDelegate>

@end

@implementation NumberSearchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = GRAYCOLOR;
    self.navigationItem.title = @"手机号查找医生";
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:view];
    [view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(100);
//        make.centerX.equalTo(self.view);
        make.left.offset(0);
        make.width.offset(WindowWidth);
        make.height.offset(50);
    }];
    
    
    UITextField *numberText = [[UITextField alloc] init];
    numberText.placeholder = @"输入手机号查找";
    numberText.delegate = self;
    [view addSubview:numberText];
    [numberText mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view).offset(10);
        make.left.equalTo(view).offset(10);
        make.height.offset(30);
        //make.right.equalTo(view).offset(10);
    }];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    [textField resignFirstResponder];
    
    return YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
